//
//  TicketTipListCell.m
//  ImGuider
//
//  Created by 王鹏宇 on 2018/1/19.
//  Copyright © 2018年 imguider. All rights reserved.
//

#import "TicketTipListCell.h"

@implementation TicketTipListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.descLabel.textColor = kSubitleColor;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

- (void)configWithDict:(NSDictionary *)dict {
    
    NSNumber * type = dict[@"type"];
    
    NSString * imageName;
    switch (type.integerValue) {
        case 1:
            imageName = @"TicketReturn";
            break;
        case 2:
            imageName = @"TicketGet";
            break;
        case 3:
            imageName = @"TicketTime";
            break;
        case 4:
            imageName = @"TicketEnter";
            break;
        default:
            break;
    }
    self.icoImageView.image = [UIImage imageNamed:imageName];
    
    self.descLabel.text = dict[@"desc"];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
